/*
 * @Author: g05047
 * @Date: 2021-06-10 14:30:21
 * @LastEditors: g05047
 * @LastEditTime: 2021-06-11 09:37:12
 * @Description: file content
 */
import { ACCOUNT_LIST, ADD_ACCOUNT, UPDATE_ACCOUNT, DEL_ACCOUNT, BATCH_MESSAGE, COMPANY_LIST } from '@/services/api';
import { request, METHOD } from '@/utils/request';
export async function accountList(params) {
    return request(ACCOUNT_LIST, METHOD.GET, params);
}
export async function addAccount(params) {
    return request(ADD_ACCOUNT, METHOD.POST, params);
}
export async function updateAccount(params) {
    return request(UPDATE_ACCOUNT, METHOD.POST, params);
}
export async function deleteAccount(params) {
    return request(DEL_ACCOUNT, METHOD.GET, params);
}
export async function batchMessage(params) {
    return request(BATCH_MESSAGE, METHOD.GET, params);
}
export async function companyList(params) {
    return request(COMPANY_LIST, METHOD.GET, params);
}
export default {
    accountList,
    updateAccount,
    deleteAccount,
    addAccount,
    batchMessage,
    companyList,
};
